/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 刘柄华
 * Date: 2022-05-27
 * Time: 20:08
 */
public class TestDemo01 extends X {
    Y y = new Y();
    public TestDemo01(){
        System.out.println("Z");
    }
    private int count;
    public TestDemo01(int a){
        count =a ;
    }
    static boolean Paddy;
    public String name = "abc";

    public static void main(String[] args) {
        TestDemo01 t1 = new TestDemo01();
        TestDemo01 t2 = new TestDemo01();
        System.out.println(t1.equals(t2) + "," + t1.name.equals(t2.name));
        TestDemo01 t3 = new TestDemo01(88);
        System.out.println(t3.count);
    }
    public static void main1(String[] args) {
        new TestDemo01();
        System.out.println(Paddy);
        method();
    }
    public void method3(){
        System.out.println("ssss");
        method();
        method1();
    }
}

class X {
    Y y = new Y();
    public X(){
        System.out.println("X");
    }
    public static void method(){
        System.out.println("Aaa");
    }
    public void method1(){
        System.out.println("VBB");
    }
}

class Y {
    public Y(){
        System.out.println("Y");
    }
}